From afc456654cd46766638e24fbe30bdea5854902f4 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 19 May 2009 01:18:35 +0100 Subject: [PATCH] stubdom: fix issue with phy disks Add an exception for stubdoms in the same_vm hotplug script function. Signed-off-by: Stefano Stabellini --- tools/hotplug/Linux/block-common.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/hotplug/Linux/block-common.sh b/tools/hotplug/Linux/block-common.sh index a0ebc9b12a..efedbf50d4 100644 --- a/tools/hotplug/Linux/block-common.sh +++ b/tools/hotplug/Linux/block-common.sh @@ -110,7 +110,8 @@ same_vm() # allowed. local othervm=$(xenstore_read_default "/local/domain/$otherdom/vm" \ "$FRONTEND_UUID") - - [ "$FRONTEND_UUID" = "$othervm" ] + local target=$(xenstore_read_default "/local/domain/$FRONTEND_ID/target" \ + "-1") + [ "$FRONTEND_UUID" = "$othervm" -o "$target" = "$otherdom" ] } -- 2.30.2